package com.hongyi.common.framework.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 登录验证信息
 *
 * @author DingHao
 */
@Data
@ApiModel("登录验证信息")
public class LoginVo implements Serializable {

    /**
     * 授权令牌
     */
    @JsonProperty("access_token")
    @ApiModelProperty(name = "授权令牌", value = "用于登录的token",example = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9." +
            "eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJTWVM6NzAiLCJyblN0ciI6IkpwaXhuOE5HMUtRYngyU0UyaVc3Q010ek14Q1VGcHphIiwidXNlcklkIjo3MH0." +
            "ycxb3gIveQFpgyCygFkrOrdjDh33TqoHJIuGOlAH_NE")
    private String accessToken;

    /**
     * 用户 openid
     */
    @ApiModelProperty(name = "openid", value = "微信小程序用户唯一id",example = "ohM-J6-oG7TGoy7JPvuWZA5seoKk")
    private String openid;

    /**
     * 系统用户信息
     */
    @ApiModelProperty(name = "系统用户信息", value = "系统用户的相关信息")
    private LoginUser loginUser;

    /**
     * 社会用户信息
     */
    @ApiModelProperty(name = "社会用户信息", value = "社会用户的相关信息")
    private SocialUser socialUser;

}
